const fs = require("fs");
const path = require("path");

var filePath = path.join(__dirname,"2.txt");

var readable = fs.createReadStream(filePath);
var writeable = fs.createWriteStream(path.join(filePath,"./2.txt"));

readable.pipe(writeable);